Sets our main struct and passes it to the parent class.
Creates a new AdwClampLayout.
Get the main Gtk struct
Gets the maximum size allocated to the children.
the main Gtk struct as a void*
Gets the size above which the children are clamped.
Sets the maximum size allocated to the children.
Sets the size above which the children are clamped.
the main Gtk struct
Get the main Gtk struct
Retrieves the orientation of the @orientable.
Sets the orientation of the @orientable.
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
Assigns the given @width, @height, and @baseline to a @widget, and computes the position and sizes of the children of the @widget using the layout management policy of @manager.
Retrieves a GtkLayoutChild instance for the GtkLayoutManager, creating one if necessary.
Retrieves the request mode of @manager.
Retrieves the GtkWidget using the given GtkLayoutManager.
Queues a resize on the GtkWidget using @manager, if any.
Measures the size of the @widget using @manager, for the given @orientation and size.
Get the main Gtk struct
the main Gtk struct as a void*
Retrieves the orientation of the @orientable.
Sets the orientation of the @orientable.
A layout manager constraining its children to a given size.
<picture> <source srcset="clamp-wide-dark.png" media="(prefers-color-scheme: dark)"> <img src="clamp-wide.png" alt="clamp-wide"> </picture> <picture> <source srcset="clamp-narrow-dark.png" media="(prefers-color-scheme: dark)"> <img src="clamp-narrow.png" alt="clamp-narrow"> </picture>
AdwClampLayout constraints the size of the widgets it contains to a given maximum size. It will constrain the width if it is horizontal, or the height if it is vertical. The expansion of the children from their minimum to their maximum size is eased out for a smooth transition.
If a child requires more than the requested maximum size, it will be allocated the minimum size it can fit in instead.
Each child will get the style classes .large when it reached its maximum size, .small when it's allocated the full size, .medium in-between, or none if it hasn't been allocated yet.